<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>modify user</title>
</head>

<script type="text/javascript">
	function init(){
		var userSex = document.getElementsByName("UserSex");
		userSex[0].value='${fm.userSex}';

		var validStatus = document.getElementsByName("ValidStatus");
		validStatus[0].value='${fm.validStatus}';
	}
</script>

<body onload="init()">
	<form action="login.do" name="LoginForm" method="POST">
		<table width="100%" cellpadding="5" cellspacing="1" border="1" border="1">
			<tr>
				<td colspan="5" align="center"><B>modify user</B></td>
			</tr>
			<tr>
				<td>UserCode</td>
				<td><input type="text" name="UserCode" size="20" value="${fm.userCode}" style="background-color:#cccc99" readonly></td>
				<td>UserName</td>
				<td><input type="text" name="UserName" size="20" value="${fm.userName}"></td>
			</tr>
			<tr>
				<td>PassWord</td>
				<td><input type="text" name="PassWord" size="20" value="${fm.passWord}"></td>
				<td>UserSex</td>
				<td>
					<select name="UserSex">
						<option value="male">male</option>
						<option value="female">female</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>UserMobile</td>
				<td><input type="text" name="UserMobile" size="20" value="${fm.userMobile}"></td>
				<td>User status</td>
				<td>
					<select name="ValidStatus">
						<option value="effective">effective</option>
						<option value="invalid">invalid</option>
					</select>
				</td>
			</tr>
		</table>
	</form>
	<jsp:include page="../util/SavePage.jsp"></jsp:include>
</body>
<script type="text/javascript">
	var fm = LoginForm;
</script>
</html>